//
//  PhoneViewCell.m
//  myapp
//
//  Created by 安建伟 on 2019/7/31.
//  Copyright © 2019 Facebook. All rights reserved.
//

#import "PhoneViewCell.h"

@implementation PhoneViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        if (!_phoneLabel) {
            _phoneLabel = [[UILabel alloc] init];
            _phoneLabel.textColor = [UIColor lightGrayColor];
            _phoneLabel.font = [UIFont systemFontOfSize:17.0];
            _phoneLabel.textAlignment = NSTextAlignmentLeft;
            _phoneLabel.adjustsFontSizeToFitWidth = YES;
            _phoneLabel.text = LocalString(@"退出登录");
            [self.contentView addSubview:_phoneLabel];
            
            [_phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
                make.size.mas_equalTo(CGSizeMake(yAutoFit(260.f), yAutoFit(30.f)));
                make.centerY.equalTo(self.contentView.mas_centerY);
                make.left.equalTo(self.contentView.mas_left).offset(25.f);
            }];
        }
    }
    return self;
}

@end
